export function indexObj(data) {
  return uni.$tn.http.get('/mentor/index', {params:data})
}

export function detailObj(data) {
  return uni.$tn.http.get('/mentor/detail', {params:data})
}

export function listObj(data) {
  return uni.$tn.http.get('/mentor/list', {params:data})
}

export function mentorCate(data) {
  return uni.$tn.http.get('/mentorCate/index', {params:data})
}

export function mentorLabel(data) {
  return uni.$tn.http.get('/mentorLabel/index', {params:data})
}

export function addMentor(data) {
  return uni.$tn.http.post('/mentor', data)
}


export function mentorOne(data) {
  return uni.$tn.http.get('/mentor/one', {params:data})
}

export function mentorTopic(data) {
  return uni.$tn.http.get('/mentor/mentorTopic', {params:data})
}
export function addTopic(data) {
  return uni.$tn.http.post('/mentor/addTopic', data)
}

export function deleteTopic(data) {
  return uni.$tn.http.post('/mentor/deleteTopic', data)
}


export function getNearMentor(data) {
  return uni.$tn.http.get('/mentor/getNearMentor', {params:data})
}